package com.sad.jetpack.v1.thememanager.demo;

import android.app.Activity;
import android.app.Application;
import android.os.Bundle;
import android.util.Log;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.multidex.MultiDexApplication;

import com.sad.jetpack.v1.thememanager.api.BasicThemeDes;
import com.sad.jetpack.v1.thememanager.api.BasicThemeDesHelper;
import com.sad.jetpack.v1.thememanager.api.LocalTheme;
import com.sad.jetpack.v1.thememanager.api.ThemeExtension;
import com.sad.jetpack.v1.thememanager.api.ThemeManager;

public class App extends MultiDexApplication {
    @Override
    public void onCreate() {
        super.onCreate();
        BasicThemeDes basicThemeDes= BasicThemeDesHelper.findBasicThemeDesByCode(0);
        int defaultResId=BasicThemeDesHelper.findResIdByBasicThemeDesCode(0);
        LocalTheme localTheme=new LocalTheme(0,basicThemeDes,new ThemeExtension(),true,1);
        ThemeManager.init(this,localTheme,defaultResId);
    }
}
